// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
// 引入element UI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App';
// 引入路由
import router from './router';
// 引入状态管理
import * as store from './vuex/store';

//引入常量
import * as constant from "./util/constant"
Vue.prototype.$t = constant;

// 引入icon
import './assets/icon/iconfont.css'

//表单scss
// import './styles/index.scss'
//表单icons
import './icons'
//表单Tinymce富文本
// import Tinymce from '@/form_views/components/tinymce/index.vue'
// Vue.component('tinymce', Tinymce)

// 引入复制插件
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)

import { request, requestFile,requestUploadFile } from "./util/request";
Vue.prototype.$request = request;
Vue.prototype.$requestFile = requestFile;
Vue.prototype.$requestUploadFile = requestUploadFile;

// import { dev } from "../config/index"
// Vue.prototype.$uri = dev.proxyTable['/api']['target'];

import { utils } from "./util/util";
Vue.prototype.$utils = utils

// 引入时间插件
import Moment from 'moment'
Vue.prototype.$moment = Moment;

// 引入echarts
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts

import axios from 'axios';
Vue.prototype.$axios = axios;

Vue.config.productionTip = false;

// 使用element UI
Vue.use(ElementUI);

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    components: { App },
    template: '<App/>',
    data: {
        // 空的实例放到根组件下，所有的子组件都能调用
        Bus: new Vue()
    }

})